//
//  Alert.h
//  项目三
//
//  Created by rimi1 on 2016/12/9.
//  Copyright © 2016年 Wangxingqian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^SureBlock)();
typedef void(^SureText)(NSString *str);

@interface Alert : NSObject

+ (void)alertWithTitle:(NSString *)title
               message:(NSString *)message;

+ (void)alertWithTitle:(NSString *)title
               message:(NSString *)message
                  sure:(SureBlock)sure;

+ (void)alertCancelWithTitle:(NSString *)title
                     message:(NSString *)message
                        sure:(SureBlock)sure;

+ (void)alertWithPhoto:(SureBlock)photoBlock
                camera:(SureBlock)camera;

+ (void)alertTextFieldWithTitle:(NSString *)title
                        message:(NSString *)message
                           sure:(SureText)sure;

@end
